package com.dianrui.moonfire.activity;

import android.view.View;
import android.widget.TextView;

import com.blankj.utilcode.util.SPUtils;
import com.dianrui.moonfire.R;
import com.dianrui.moonfire.util.NoDoubleClickUtils;
import com.dianrui.moonfire.util.StringUtils;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Description:实名认证(详情)
 * User: luoziyin
 * Date: 2020-8-17
 */
public class AuthInfoActivity extends BaseActivity {
    @BindView(R.id.title)
    TextView title;
    @BindView(R.id.name)
   TextView name;
    @BindView(R.id.card)
   TextView card;


    @Override
    public int getContentViewId() {
        return R.layout.activity_authinfo;

    }

    @Override
    public void initView() {
        customInit(true);
        title.setText(getString(R.string.auth_title));
        if (!StringUtils.isEmpty(SPUtils.getInstance().getString("name"))) {
            name.setText(SPUtils.getInstance().getString("name"));
        }

        if (!StringUtils.isEmpty(SPUtils.getInstance().getString("card"))) {
            card.setText(SPUtils.getInstance().getString("card"));
        }

    }

    @Override
    public void initData() {

    }


    @OnClick({R.id.back})
    public void onViewClicked(View view) {
        if (NoDoubleClickUtils.isDoubleClick()) {
            return;
        }
        switch (view.getId()) {
            case R.id.back:
                finish();
                break;
            default:
                break;
        }
    }
}
